package inventory.config.spring;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.RestController;

@Component
@ComponentScan(basePackages = {"inventory"},
        excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = Controller.class)
                ,@ComponentScan.Filter(type = FilterType.ANNOTATION, value = ControllerAdvice.class)
                ,@ComponentScan.Filter(type = FilterType.ANNOTATION, value = RestController.class)})
@EnableTransactionManagement(proxyTargetClass = true)
@ImportResource("classpath:application-shiro.xml")
public class RootConfig {

}
